import sys
import psycopg2.pool



class Config(object):
    def __init__(self):
        try:self._ENV=sys.argv[1]
        except:self._ENV='doc'

        self._DB={'minconn':1,'maxconn':1,'host':'192.168.2.199','user':'odoo','password':'1','dbname':'dev_1215'}
        #self._pool=psycopg2.pool.SimpleConnectionPool(2,20,host='localhost',user='ldn',password='155234005',dbname='labor')

CF=Config()
DBPOOL=psycopg2.pool.SimpleConnectionPool(**CF._DB)
